<template>
  <div class="content">
    <h3>{{detail.title}}</h3>
    <div v-if="detail.date" class="time">{{ detail.date }}</div>

    <div v-for="item in detail.content">
      <div v-if="item.includes('http')" style="margin-bottom: 10px;">
        <img :src="item" alt="">
      </div>
      <div v-else style="margin-bottom: 10px;">{{item}}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "YHome",
  data() {
    return {
      detail: {}
    };
  },
  created() {
    console.log(this.$route.query)
    this.detail = this.$route.query
  },
  methods: {
  },
};
</script>

<style lang="scss" scoped>
.content {
  width: 1200px;
  margin: 20px auto;

  h3 {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }
  .time {
    width: 100%;
    text-align: right;
    margin-bottom: 20px;
  }
}
</style>
